<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>مهمات وتنقلات</title>

<!------------------------------ajax---------------------------->
<!-- <script type="text/javascript"  src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> 
    <script type="text/javascript"  src="http://malsup.github.com/jquery.form.js"></script> -->
	
<!---------------------for autocomplete--------------->
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.11.0.min.js');?>" ></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui-1.10.4/js/jquery-ui-1.10.4.min.js');?>" ></script>
	<link href="<?php echo base_url("assets/css/jquery-ui.css")?>" rel="stylesheet" type="text/css" />
<!---------------------for form css ----------------------->
	<link href="<?php echo base_url("assets/css/pure.css")?>" rel="stylesheet" type="text/css" />
<!---------------------for form validation ----------------------->
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.validate.js');?>" ></script>
<!---------------------for form mask input ----------------------->
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.mask.min.js');?>" ></script>


</head>
<body>
<?php
include_once('header.php');

// ----- populate $liste_des_fournisseurs array for autocomplete ----- //

// ----- populate $liste_des_activites array for autocomplete ----- //


?>


<form id="bc_form" class="pure-form pure-form-stacked" method="POST" action="<?php echo base_url('mission_ctr/modifier_mission').'/'.$result[0]->id_mission;?>">
    
        <legend style="font-size: 150%"> جدول مصاريف التنقل رقم :<?php echo($result[0]->numero); ?> </legend>

        <div class="pure-g">
            <div class="pure-u-1 pure-u-md-1-3" style="width: 80%">
                <label for="fournisseur" style="display: inline-block">الرقم : </label>
				 <input  style="display: inline-block" class="ltr" id="article" name="numero" type="text" value="<?php echo($result[0]->numero); ?>">
            </div>
            
			 <div class="pure-u-1 pure-u-md-1-3" style="width: 80%">
                <label for="fournisseur" style="display: inline-block">الاسم : </label>
				 <input  style="display: inline-block" class="ltr" id="article" name="nom" type="text" value="<?php echo($result[0]->nom); ?>">
            </div>
			
			 <div class="pure-u-1 pure-u-md-1-3 " style="width: 80%">
                <label for="numero" style="display: inline-block"> الرتبة : </label>
				 <input  style="display: inline-block" class="ltr" id="article" name="grade" type="text" value="<?php echo($result[0]->grade); ?>">
                
            </div>
			
            <div class="pure-u-1 pure-u-md-1-3 " style="width: 80%">
                <label style="display: inline-block" for="article">التاريخ </label>
                <input  style="display: inline-block" class="ltr" id="article" name="date" type="text" value="<?php echo($result[0]->date); ?>">
            </div>
			
			 <div class="pure-u-1 pure-u-md-1-3 " style="width: 80%">
                <label style="display: inline-block" for="article">التنقلات </label>
                <input  style="display: inline-block" class="ltr" id="article" name="transport" type="text" value="<?php echo($result[0]->transport); ?>">
            </div>
			
			 <div class="pure-u-1 pure-u-md-1-3 " style="width: 80%">
                <label style="display: inline-block" for="article">التنقلات عادية</label>
                <input  style="display: inline-block" class="ltr" id="article" name="normale" type="text" value="<?php echo($result[0]->normale); ?>">
            </div>
			
			 <div class="pure-u-1 pure-u-md-1-3 " style="width: 80%">
                <label style="display: inline-block" for="article">التنقلات مبيت </label>
                <input  style="display: inline-block" class="ltr" id="article" name="nuit" type="text" value="<?php echo($result[0]->nuit); ?>">
            </div>

           
			
			
			
</div>			
			
<div class="pure-u-1 pure-u-md-1-3 " style="width: 50%">			
			     <?php
  $goupe=$this->session->userdata('user_group'); //access it
if($goupe=="admin"){
echo ('<input type="submit" id="ajouter" value="تسجيل "  class="pure-button pure-button-primary"  />

<a href="'. base_url("/mission_ctr/engager").'/'.$result[0]->id_mission.'" class="pure-button pure-button-primary">التزام</a>
<a href="'. base_url("/mission_ctr/imprimer").'/'.$result[0]->id_mission.'" class="pure-button pure-button-primary">طباعة</a>
');
}
?>
		

   
     <a href="<?php echo base_url("/mission_ctr/")?>" class="pure-button pure-button-primary" >خروج</a>
	 
	 </div>
</form>
		



		

			

</body>


</html>